Fix track timestamp endianness on read .
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 28 Oct 2003 23:40:57 +0000 (23:40 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Tue, 28 Oct 2003 23:40:57 +0000 (23:40 +0000)
gpsbabel/mapsource.c

index 3106939bb09641c30fc8156a183504f760d9d509..669555409e4c080531c0b8c503493ad0299050be 100644 (file)
@@ -1260,7 +1260,7 @@ mps_track_r(FILE *mps_file, int mps_ver, route_head **trk)
                thisWaypoint = xcalloc(sizeof(*thisWaypoint), 1);
                thisWaypoint->latitude = lat / 2147483648.0 * 180.0;
                thisWaypoint->longitude = lon / 2147483648.0 * 180.0;
-               thisWaypoint->creation_time = dateTime;
+               thisWaypoint->creation_time = le_read32(&dateTime);
                thisWaypoint->centiseconds = 0;
                thisWaypoint->altitude = mps_altitude;
                route_add_wpt(track_head, thisWaypoint);